﻿<Window x:Class="Windows.VistaGlassWindow2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="VistaGlassWindow" Height="300" Width="300"
    Loaded="OnLoaded" Background="Transparent"
    >
  <Grid >
    <DockPanel Name="mainDock" LastChildFill="True">
      <!-- The border is used to compute the rendered height with margins.
           topBar contents will be displayed on the extended glass frame.-->
      <Border Name="topBar" DockPanel.Dock="Top">
        <StackPanel>
          <TextBlock Padding="5">Some content that's docked to the top.</TextBlock>
          <Button Margin="5" Padding="5">A Button</Button>
        </StackPanel>
      </Border>
      <Border Background="White">
        <StackPanel Margin="5">
          <TextBlock Margin="5" >Some text.</TextBlock>
          <Button Margin="5" Padding="5">A Button</Button>
        </StackPanel>
      </Border>
    </DockPanel>
  </Grid>

</Window>
